使用缩放和插值的主菜单按钮 - #107
Open
GlitchedReme wants to merge 3 commits into
Open
Conversation
BAKAOLC
requested changes
Sep 9, 2026
Engage scrolling only after a height tolerance, snap steps from the actual scroll position, and ease edge scale so top and bottom entries stay reachable.
Contributor
Author
|
修正了上面提到的和一些其他问题以及优化 |
BAKAOLC
requested changes
Sep 9, 2026
BAKAOLC
left a comment
Owner
There was a problem hiding this comment.
上一轮指出的顶部滚动判断和已释放节点访问问题已修正。本轮发现焦点变化后边缘缩放状态未刷新的问题,见行内评论。
|
|
||
| private void ApplyEdgeScale(Control item, float top, float height, float topWeight, float bottomWeight) | ||
| { | ||
| if (IsReticleTarget(item)) |
Owner
There was a problem hiding this comment.
[P2] 悬停目标变化时也需要刷新边缘缩放。这里对当前目标恢复大小和透明度,但 ApplyEdgeScale 只由 PositionItems 调用;鼠标悬停路径中的 ShowReticles / HideReticles 及其动画只调用 UpdateDecorations,_Process 也不会在布局未变时重新定位。因此等待滚动动画结束,再将鼠标移入一个完全可见但处于 EdgeZone 内的缩小按钮,新的目标仍保持缩小、变淡,直到下一次滚动或布局刷新。反过来,在滚动期间已经恢复正常大小的目标,鼠标移走后也可能继续保留正常大小。请在目标切换或清除时重新计算受影响按钮的边缘缩放和透明度,覆盖无需再次滚动的鼠标移入、移出场景。
Reapply edge scaling for the previous and new reticle targets on ShowReticles, HideReticles, and HideDecorations so buttons in the edge zone no longer stay shrunk or full-sized until the next scroll.
BAKAOLC
added a commit
that referenced
this pull request
Sep 9, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary / 概要
bandicam.2026-09-09.15-55-21-918.mp4
Notes / 备注